package controller.room
{
	import events.room.EventSetRoomProperty;
	
	import model.ModelProject;
	
	import org.robotlegs.mvcs.Command;
	
	import others.Util;
	
	public class CommandSetRoomProperty extends Command
	{
		[Inject]
		public var event:EventSetRoomProperty;
		
		[Inject]
		public var mp:ModelProject;
		
		override public function execute() : void {
			mp.projectModified = true;

			Util.setCascadePropery(event.object, event.property, event.value);
		}
	}
}